package com.test;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;

public class Jsontwo {
	
static String str = "[{\"control\":\"Textarea\",\"id\":\"item-item-1493800414708\",\"title\":[{\"text\":\"加班"
		+ "事由\",\"lang\":\"zh_CN\"}],\"value\":{\"text\":\".bdmx\",\"tips\":[],\"members\":[],\"departments\":[],\"files\":[],\"children\":[],\"stat_f"
		+ "ield\":[],\"sum_field\":[],\"related_approval\":[],\"students\":[],\"classes\":[]}},{\"control\":\"Attendance\",\"id\":\"smart-time\",\"title\":[{\"text\":\"加班\",\"lang\":\"zh_CN\"}],\"value\":{\"tips\":[],\"members\":[],\"departments\":[],\"files\":[],\"children\":[],\"stat_field\":[],\"attendance\":{\"date_range\":{\"type\":\"hour\",\"new_begin\":1626256440,\"new_end\":1626256500,\"new_duration\":360},\"type\":5,\"slice_info\":{\"day_items\":[{\"daytime\":1626192000,\"time_sections\":[],\"duration\":360}],\"state\":1,\"duration\":360}},\"sum_field\":[],\"related_approval\":[],\"students\":[],\"classes\":[]}},{\"cont"
		+ "rol\":\"Contact\",\"id\":\"Contact-1624343957239\",\"title\":[{\"text\":\"成员\",\"lang\":\"zh_CN\"}],\"val"
		+ "ue\":{\"tips\":[],\"members\":[{\"userid\":\"13971090065\",\"name\":\"查明威\"},{\"userid\":\"ZhuHaiTao\",\"name\":\"朱海涛\"}],\"departme"
		+ "nts\":[],\"files\":[],\"children\":[],\"stat_field\":[],\"sum_field\":[],\"related_approval\":[],\"students\":[],\"classes\":[]}}]";

public static void main(String[] args) {
	JSONArray contents = JSONObject.parseArray(str);
	JSONObject content0 = JSONObject.parseObject(JSON.toJSONString(contents.get(0)));			
	JSONObject content1 = JSONObject.parseObject(JSON.toJSONString(contents.get(1)));
	JSONObject content2 = JSONObject.parseObject(JSON.toJSONString(contents.get(2)));
	System.out.println(content0);
	System.out.println(content1);
	System.out.println(content2);
}
}
